class CreateHotlineCalls < ActiveRecord::Migration
  def self.up
    create_table :hotline_calls do |t|
      t.column :domestic_violence, :boolean
      t.column :city, :string
      t.column :number_of_children, :integer
      t.column :turned_away, :boolean
      t.column :referrals_given, :boolean
      t.column :hotline_number, :string
      t.column :caller_name, :string
      t.column :victim_name, :string
      t.column :volunteer_name, :string
      t.column :call_time, :datetime
      t.column :caller_age, :integer
      t.column :caller_ethnicity, :string
      t.column :abuse_type, :string
      t.column :abuser_relationship, :string
      t.column :call_language, :string
      t.column :child_abuse, :boolean
      t.column :abuse_description, :text
      t.column :child_abuse_last_incident, :date
      t.column :dv_last_incident, :date
      t.column :last_shelter, :string
      t.column :last_shelter_date, :date
      t.column :asked_to_leave_shelter, :boolean
      t.column :police_notification_place, :string
      t.column :police_notification_date, :date
      t.column :po_in_place, :boolean
      t.column :valid_until, :date
      t.column :weapon_type, :string
      t.column :caller_financial_status, :string
      t.column :has_transportation, :boolean
      t.column :medications, :string
      t.column :injuries, :string
      t.column :special_accommodations, :text
      t.column :entered, :boolean
    end
  end

  def self.down
    drop_table :hotline_calls
  end
end
